<template>
  <div>
    <div class="app-container" style="height: 100%;">
      <div class="home" :style="{height: height + 'px', minHeight: 200 + 'px'}">
        <img key="logo" :src="logoUrl" style="height:300px;width:300px;margin-top:12%" alt="">
        <div class="title">欢迎使用，智慧测绘园！</div>
      </div>
    </div>
  </div>
  
  
</template>

<script>
import {checkPermi} from '@/utils/permission.js'
import {toThousandFilter} from '@/utils/index.js'
import BigNumber from 'bignumber.js'
import { titleCase } from '../utils';

export default {
  name: "Index",
  components: {},
  dicts:[],
  data() {
    return {
      // 版本号
      version: "3.8.5",
      logoUrl: require("@/assets/images/index-bg.png"),
      height: document.body.clientHeight - 90 - 40,
    };
  },
  activated() {
    this.tableHeight();
  },
  updated() {
    // 解决表格设置固定高度导致列设置fixed后重新进来会错行问题
    // this.tableHeight();
  },
  mounted() {
    this.tableHeight();
  },
  methods: {

    
    tableHeight() {
      this.$nextTick(() => {
        let height = document.body.clientHeight - 90 - 40;
        // console.log('height = ', height);
        // 计算表格的高度
        this.height = height;
        this.echartHeight = height - 36 - 0 - 0;
        // console.log('hei=', this.height, '; echartHeight=', this.echartHeight);
      });
    },

    goTarget(href) {
      window.open(href, "_blank");
    },
  }
};
</script>

<style scoped lang="scss">

::v-deep .el-tabs__nav-wrap::after {
  height: 1px;
  width: 20%;
}
.home {
  text-align: center;
  .title{
    margin-top: 80px;
    font-size: 28px;
  }
}
.titleClass {
  width: 120px;
  height: 22px;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  line-height: 22px;
  // white-space: nowrap;
}
.numText {
  // width: 53px;
  height: 24px;
  font-family: DINAlternate-Bold;
  font-weight: 700;
  font-size: 20px;
  color: #333333;
}
::v-deep .el-card__body {
  padding: 10px;
}
</style>

